import Vue from 'vue';
import Vuex from 'vuex';
import getters from './getters';
import app from './modules/app';
import settings from './modules/settings';
import userStore from './modules/userStore/userStore';
import dashboardStore from '@/store/modules/dashboard/dashboardStore';
import monthCardStore from '@/store/modules/car/monthCardStore';
import areaStore from '@/store/modules/car/areaStore';
import payStore from '@/store/modules/car/payStore';
import buildingStore from '@/store/modules/park/buildingStore';
import propetyStore from '@/store/modules/propety/propetyStore';
import manageStore from '@/store/modules/rod/manageStore';
import warnListStore from '@/store/modules/rod/warnListStore';
import enterpriseStore from '@/store/modules/park/enterpriseStore';
import employeeStore from '@/store/modules/system/employeeStore';
import roleStore from '@/store/modules/system/roleStore';
import menusStore from '@/store/modules/menus/menusStore';

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    userStore,
    dashboardStore,
    monthCardStore,
    areaStore,
    payStore,
    buildingStore,
    propetyStore,
    warnListStore,
    manageStore,
    enterpriseStore,
    employeeStore,
    roleStore,
    menusStore,
  },
  getters,
});

export default store;
